#pragma once

#include <functional>
using namespace std;

#include "GameTexture.h"

class GameButton : public GameTexture
{
public:
	function<void()> m_hover;
	function<void()> m_click;

	GameButton();
	~GameButton();

	void update();

	void onHover(function<void()> a_func){m_hover = a_func;}
	void onClick(function<void()> a_func){m_click = a_func;}
};